package com.atguigu.day13.study.codeblock.c2;

public class Person {
    {
        System.out.println("Person 中的代码块 5");
    }

    String name = getName();
    int age;

    public String getName() {
        System.out.println("Person getName() 2");
        return "李白";
    }

    {
        System.out.println("Person中的代码块.... 3");
    }

    public Person() {
        super();
        System.out.println("Person 无参 4");
    }

    static double height = getHeight();
    private static double getHeight() {
        System.out.println("Person getHeight 1");
        return 1.79;
    }

}
